home *** CD-ROM | disk | FTP | other *** search
- Path: news.nic.utwente.nl!news
- From: v.n.jeronimus@student.utwente.nl (V.N.Jeronimus)
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.tools.owl
- Subject: Context Devices & co
- Date: 9 Jan 1996 12:25:38 GMT
- Organization: University of Twente, Enschede, The Netherlands
- Message-ID: <4ctms2$1ai@driene.student.utwente.nl>
- NNTP-Posting-Host: mat018105.student.utwente.nl
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- Hi,
-
- I just want a very simple programming concept:
-
- A part of my window needs to be repainted, because I used ScrollDC to scroll
- the window to the left. All I want now is to build the new to-be-repainted
- rectangle in memory first and than BITBLT it to my Client Area, because
- rebuilding it on screen will make my Client Area blink while scrolling....
-
- What I tried is something like this (All with OWL 2.5 & Borland C++ 4.52)
-
- 1. I created a clientDC (TClientDC) of my client window;
- 2. I created a compatible memoryDC (TMemoryDC(clientDC)) of clientDC;
- 3. I build my new part that needs to be painted;
- 4. I call clientDC->BitBlt(rect,*memoryDC,TPoint(x,y),SRCCOPY).
-
- But it does not work. From I example I found out that you can BitBlt a selected
- object, but a rectangle from a DC can't be selected as a object..
-
- Please, does some-one has a working solution???
-
- regards,
-
- Vincent Jeronimus.
-
-